namespace Verse.AI.Group;

public class Trigger_PawnsLost : Trigger
{
	private int count = 1;

	public Trigger_PawnsLost(int count)
	{
		this.count = count;
	}

	public override bool ActivateOn(Lord lord, TriggerSignal signal)
	{
		if (signal.type == TriggerSignalType.PawnLost)
		{
			return lord.numPawnsLostViolently >= count;
		}
		return false;
	}
}
